import {axiosPost} from '../api';
import {fetch, fetchGet} from '../api';
import hgjSkip from '../../assets/js/hgjSkip';

// 我的行家API
const getMyExpertInfo = objs => { return fetch('PostMessage/Getmyexpertinfo', objs) };

// 修改行家状态API
const updateExpertStateInfo = objs => { return fetch('PostMessage/Updateexpertstateinfo', objs) }

// 添加行家发布明细信息API
const addExpertDetail = objs => { return fetch('PostMessageDetail/Addexpertdetail', objs) };

// 修改行家发布明细信息API
const updateExpertDetail = objs => { return fetch('PostMessageDetail/Updateexpertdetail', objs) }

// 删除行家发布的明细信息API
const deleteExpertDetail = objs => { return fetch('PostMessageDetail/Detailexpertdetail', objs) }

// 我的钱包API
const getUserBurse = objs => { return fetch('DealRecord/getuserburse', objs) }

// 修改行家介绍API
const updateMyIntroduce = objs => { return fetch('PostMessage/UpdateMyIntroduce', objs) }

// 修改行家工作介绍API
const updateMyJob = objs => { return fetch('PostMessage/UpdateMyJob', objs) }

// 行家的发布信息详情API
const getLoactionMessageDetail = objs => {
  return fetch('NearbyPostMessage/getloactionmessagedetail', objs) 
}

// 获取行家信息API
const getExpertinfo = objs => {
  return fetch('PostMessage/Getexpertinfo', objs) 
}

// 创建干货支付订单API
const createDryGoodsDealOredr = objs => {
  return fetch('DryGoods/CreateDryGoodsDealOredr', objs) 
}

const Apis = {
  getMyExpertInfo,            // 我的行家API
  updateExpertStateInfo,      // 修改行家状态API
  addExpertDetail,            // 添加行家发布明细信息API
  updateExpertDetail,         // 修改行家发布明细信息API
  deleteExpertDetail,         // 删除行家发布的明细信息API
  getUserBurse,               // 我的钱包API
  getLoactionMessageDetail,   // 行家的发布信息详情
  createDryGoodsDealOredr,    // 创建干货支付订单
  updateMyIntroduce,          // 修改行家介绍API
  updateMyJob,                // 修改行家工作介绍API
  getExpertinfo,              // 获取行家信息API
}
export default Apis;